package com.jingbian.cppccbackend.mapper.user;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jingbian.cppccbackend.entity.ActivitiesApply;
import com.jingbian.cppccbackend.vo.ActivityApplyVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author pum
 * @since 2025-02-28
 */
@Mapper
public interface ActivitiesApplyMapper extends BaseMapper<ActivitiesApply> {

  List<ActivityApplyVO> getApplyList(int aid);

  // 存在性检查
  boolean existsByAidAndApplyId(@Param("aid") Integer aid, @Param("applyId") Integer applyId);
}
